package com.easy.activiti.pojo;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author zhouchuang
 * @date 2024-11-11 22:30:20
 */
public class TaskInfoExtendRowMapper implements RowMapper<TaskInfoExtend> {

    public TaskInfoExtendRowMapper() {
    }

    @Override
    public TaskInfoExtend mapRow(ResultSet resultSet, int i) throws SQLException {
        TaskInfoExtend task = new TaskInfoExtend();
        task.setTASK_ID_(resultSet.getString("TASK_ID_"));
        task.setNAME_(resultSet.getString("NAME_"));
        task.setTEXT_(resultSet.getString("TEXT_"));
        task.setPROC_NAME_(resultSet.getString("PROC_NAME_"));
        task.setPROC_INST_ID_(resultSet.getString("PROC_INST_ID_"));
        return task;
    }
}